#include <stdio.h>

void updateArr(int i, char s[], char c);
void delArr(char s[], int i);

int i;

// create an array
char s[4];

int main(void) {
    // put or update member in array
    updateArr(0, s, 'k');
    updateArr(1, s, 'e');
    updateArr(2, s, 'n');
    updateArr(3, s, 't');

    // delete member from array
    delArr(s, 3);

    // get member from array
    for (i = 0; i < 4; i++) {
        printf("%d\n", s[i]);
        printf("%c\n", s[i]);
    }

    return 0;
}

// update member in array
void updateArr(int i, char s[], char c) {
    s[i] = c;
}

// delete member from array
void delArr(char s[], int i) {
    for (; i < 4; i++) {
        s[i] = s[i + 1];
    }
    s[i] = 0;
}